package punctuatedEquilibriumTest;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import punctuatedEquilibrium.Phenotype;
import punctuatedEquilibrium.PhenotypeFactory;
import punctuatedEquilibrium.Trait;
import punctuatedEquilibrium.TraitFactory;

public class PhenotypeFactoryTest extends PhenotypeFactory {
	@Test
	public void testNullPhenotype() {
		Phenotype actual = PhenotypeFactory.getNullPhenotype();
		Trait[] nullTraits = TraitFactory.getTraitsOfValueZero();
		Phenotype expected = new Phenotype(nullTraits);
		assertTrue(actual.isEquivalent(expected));
	}
}
